-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds Support to Named Arguments #41
Conversation
* Add support for named arguments (pythonnet#849) * Remove kwarg check since it breaks the python-derived CLR class use-case * Add named parameter test cases * Update changelog and authors * Add default params tests
Pick-cherry from pythonnet master and resolve conflicts.
Codecov Report
@@ Coverage Diff @@
## master #41 +/- ##
=======================================
Coverage 69.42% 69.42%
=======================================
Files 1 1
Lines 278 278
=======================================
Hits 193 193
Misses 85 85
Continue to review full report at Codecov.
|
Remoes `break` at `AssemblyManager.Initialize` added for debugging/testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍 leaving a minor performance suggestion, believe we need a new version bump. Would be nice to run some of Lean python performance benchmarks
IntPtr op; | ||
if (hasNamedParam) | ||
{ | ||
op = kwargDict[parameter.Name]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think could use kwargDict.TryGetValue
at the top and avoid accessing the dictionary twice
Closing in favor of #47 |
Pick-cherry (pythonnet#849)) from pythonnet master and resolve conflicts.